package com.sike.dao;

import com.sike.domain.Book;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BookRepository extends CrudRepository<Book,Integer> {

    //符合命名规范的查询
//    Iterable<Book> findByName(String name);  //注意必须在实体类的 name属性加 @Indexed注解
}
